package jsyf.oa.service.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.dao.system.EnumDao;
import jsyf.oa.facade.system.EnumFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
@com.alibaba.dubbo.config.annotation.Service(protocol = {"dubbo"})
public class EnumService implements EnumFacade {

    @Autowired
    private EnumDao enumDao;

    @Override
    public List<JSONObject> selectByType(String enumType) {
        return enumDao.selectByType(enumType);
    }
}
